home *** CD-ROM | disk | FTP | other *** search
- /* Functions to interface to Finder.
- 94/01/15 aih - writes strings to current resource file
- 93/12/16 aih - added default message string
- 93/03/10 aih - created */
-
- #include <stdio.h>
- #include "FinderLib.h"
- #include "ResourceConstantsLib.h"
- #include "ResourceLib.h"
-
- /* write the application's name to the current resource file */
- void FinderWriteApplicationName(void)
- {
- FileNameType name;
-
- ResStrLen(RLS_FILE, RLS_FILE_APPLICATION, name, sizeof(FileNameType));
- ResStringSet(-16396, name);
- }
-
- /* write the default message to the current resource file */
- void FinderWriteDefaultMessage(short index)
- {
- CStr255 fmt, msg;
- FileNameType name;
-
- ResStrLen(RLS_FILE, RLS_FILE_APPLICATION, name, sizeof(FileNameType));
- ResStr(RLS_FINDER, index, fmt);
- sprintf(msg, fmt, name);
- ResStringSet(-16397, msg);
- }
-